import grails.converters.*


class MenuController {

    def index = { redirect(action:menuList,params:params) }
    def menuList = {
    		def rows = [[cell:[1, "订单管理", " ", 0, 1, 10, "false", "false"]],
    		            [cell:[2, "Crane", "crane/main.gsp", 1, 2, 3, "true", "true"]],
    		            [cell:[3, "Bill", "bill/main.gsp", 1, 4, 5, "true", "true"]],
    		            [cell:[4, "Sample page3", "dummyParent/main2.gsp", 1, 6, 7, "true", "true"]],
    		            [cell:[5, "chen", "user/main.gsp", 1, 8, 9, "true", "true"]],
    		            [cell:[6, "用户权限管理", " ", 0, 11, 23, "false", "false"]],
    		            [cell:[7, "用户管理", "", 1, 12, 13, "true", "true"]],
    		            [cell:[8, "功能管理", "", 1, 14,15, "true", "true"]],
    		            [cell:[9, "组织管理", "", 1, 15,16, "true", "true"]],
    		            [cell:[10, "地理信息管理", "geoInfo/list", 1, 17,18, "true", "true"]],
    		            [cell:[11, "分组管理", "", 1, 19,20, "true", "true"]],
    		            [cell:[12, "角色管理", "shiroRole/", 1, 21,22, "true", "true"]],
    		            
    		
    		]
//    		["id":"5", "Items":"Array Data", "url":"localex.html", "level":"1", "rgt":"8", "rgt":"9", "isLeaf":"true", "expanded":"true"]  		
    		def json = ["page":1, "records":1, "rows":rows]
    		render json as JSON
    	
    }
}
